package cn.wolfcode.wolf2w.test;


import lombok.Getter;
import lombok.Setter;

/**
 * 枚举类特点:
 *   1:枚举类构造器是私有
 *   2:枚举类当定义完成之后,实例个数固定
 *   3:剩下操作跟普通一模一样
 */
@Getter
public enum MyDate {

    DATE1("date1", 1L),
    DATE2("dat2", 2L),
    DATE3("data3", 3L);

    @Setter
    private String prefix;
    @Setter
    private Long time;
    public String join(String value){
        return value;
    }
    //private MyDate(){}

    private MyDate(String prefix, Long time){
        this.prefix = prefix;
        this.time = time;
    }

}
